package com.bdqn.dao.entity;

import com.bdqn.dao.entity.base.BaseEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;


/**
 * 用于封装平台信息的实体类
 */
@Data
@Table(name = "'t_platform'")
public class Platform extends BaseEntity implements Serializable {
    @Id
    @Column(name = "`id`")
    private Integer id;

    /**
     * 平台名称
     */
    @Column(name = "`name`")
    private String name;

    /**
     * 平台名称 拼音
     */
    @Column(name = "`namePinyin`")
    private String namePinyin;

    /**
     * 平台logo
     */
    @Column(name = "`logo`")
    private String logo;

    /**
     * 官网
     */
    @Column(name = "`website`")
    private String website;

    /**
     * APP下载地址
     */
    @Column(name = "`download_link`")
    private String downloadLink;

    /**
     * 排序
     */
    @Column(name = "`pos`")
    private Integer pos;
    /**
     * 接单频率
     */
    @Column(name = "`rate`")
    private Integer  rate;
    /**
     * 接单频率 用户是否能自己设置
     */
    @Column(name = "`flagRate`")
    private Integer  flagRate;
    /**
     * 登录是否要验证码  null 就不要
     */
    @Column(name = "`loginToken`")
    private String loginToken;
    /**
     * 接单是否要验证码 null 就不要
     */
    @Column(name = "`oredrToken`")
    private String oredrToken;

    /**
     * 平台是否可用
     */
    @Column(name = "`status`")
    private String status;


    @Transient
    private String authstatus;
    private static final long serialVersionUID = 1L;

}
